package com.sise.dubbo.api;

import com.sise.dubbo.common.ServiceException;
import com.sise.dubbo.dto.PaginationRespDTO;
import com.sise.dubbo.dto.RpcRespDTO;
import com.sise.dubbo.model.User;

/**
 * @author hao_lin
 * @data 2018/9/29 10:44
 */
public interface UserRpcService {

    String printStr(String str);

    RpcRespDTO<PaginationRespDTO<User>> findAll(int page);

    RpcRespDTO<PaginationRespDTO<User>> findByUsername(String username,int page) throws ServiceException;
}
